footer.init();
header.init('收益详情');
var data=window.sessionStorage.getItem('shop_pro_detail');
data = JSON.parse(data);
var orderId = data.orderid;
var kname = data.kdn;
console.log(orderId);
$.ajax({
	'dataType' : 'json',
	'type' : 'post',
	'url'  : app.link.apiUrl+'/Member/Shop/saty_view',
	'data' :{order_id : orderId }
	})
	.fail(function(res){
		layer.msg(res.msg);
	}).done(function(res){
		if(res.code == 200){
			app.tpl($('.shop-list'),'tpl-shop-list',res);
		}else{
			
		}
});

window.onload = function(){
	$('body').on('click','.detail-product .mui-row',function(){
		var ids = $(this).attr('data-id');
		app.open('productDetail.html','productDetail',{id:ids},window.location.href,document.body.scrollTop);
	});
	$('body').on('click','.wuliu',function(){
		var ids = $(this).attr('data-id');
		app.open('shop.viewLogistic.html','shop_viewLogistic',{id : ids,kdn:kname},window.location.href,document.body.scrollTop);
	})
}
